At least three people died, and 21 were left injured after a woman carrying an improvised explosive device detonated a bomb near a summer cafe in central Moscow after being stopped by security, according to officials.